#!/usr/bin/env python
#-*- encoding:UTF-8 -*-

# $Id$

# A very simple setup script to create 2 executables.
#
# hello.py is a simple "hello, world" type program, which alse allows
# to explore the environment in which the script runs.
#
# test_wx.py is a simple wxPython program, it will be converted into a
# console-less program.
#
# If you don't have wxPython installed, you should comment out the
#   windows = ["test_wx.py"]
# line below.
#
#
# Run the build process by entering 'setup.py py2exe' or
# 'python setup.py py2exe' in a console prompt.
#
# If everything works well, you should find a subdirectory named 'dist'
# containing some files, among them hello.exe and test_wx.exe.


from distutils.core import setup
import py2exe

includes = ["encodings", "encodings.*"]
dll_excludes = [ "OLEAUT32.dll", "USER32.dll", "SHELL32.dll", "ole32.dll", "WSOCK32.dll",
                 "COMCTL32.dll", "ADVAPI32.dll", "WINSPOOL.DRV", "GDI32.dll", "WINMM.dll",
                 "VERSION.dll", "KERNEL32.dll",  "comdlg32.dll",  "RPCRT4.dll"]
options = {"py2exe":
            {   "compressed": 1,
                "optimize": 2,
                "includes": includes,
                "bundle_files": 1,
                "dll_excludes":dll_excludes
            }
          }

setup(
    # The first three parameters are not required, if at least a
    # 'version' is given, then a versioninfo resource is built from
    # them and added to the executables.
    version = "0.1.0",
    description = "A SDS/ADaM meta-data management system",
    name = "PySDS",
    author = "John Wang",
    author_email = "jowang@grs-cro.com",
    url="http://code.google.com/p/pysds/",

    # targets to build
    windows = [{"script":"SMARTER.py",
                "icon_resources": [(1, "pycon.ico")]}],
    data_files = [("meta_lib.mdb"), ("pycon.ico"), ("license.txt")],
    options = options,
    zipfile=r"data\modules.dat"
    #zipfile=None
    )
